if (Object.defineProperty(exports, "__esModule", {
    value: !0
}), "function" != typeof Object.assign && (Object.assign = function(t) {
    if (null == t) throw new TypeError("Cannot convert undefined or null to object");
    t = Object(t);
    for (var n = 1; n < arguments.length; n++) {
        var e = arguments[n];
        if (null != e) for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
    }
    return t;
}), String.prototype.padEnd || (String.prototype.padEnd = function(t, n) {
    return t >>= 0, n = String(void 0 !== n ? n : " "), this.length > t ? String(this) : ((t -= this.length) > n.length && (n += n.repeat(t / n.length)), 
    String(this) + n.slice(0, t));
}), String.prototype.padStart || (String.prototype.padStart = function(t, n) {
    return t >>= 0, n = String(void 0 !== n ? n : " "), this.length > t ? String(this) : ((t -= this.length) > n.length && (n += n.repeat(t / n.length)), 
    n.slice(0, t) + String(this));
}), !wx.showLoading) {
    var t = void 0;
    wx.showLoading = function() {
        var n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
        n.icon = "loading", n.duration = 1e4, clearInterval(t), wx.hideToast(), wx.showToast(n), 
        t = setInterval(function() {
            wx.hideToast(), wx.showToast(n);
        }, 8e3);
    }, wx.hideLoading = function() {
        wx.hideToast(), clearInterval(t);
    };
}

exports.default = wx;